﻿ver = $host | select version
if ($ver.Version.Major -gt 1) {$host.Runspace.ThreadOptions = "ReuseThread"} 
if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) {
    Add-PSSnapin "Microsoft.SharePoint.PowerShell"
}

$web = get-spweb http://server/sites/nameSite

#ingresar el usuario al cual queremos cambiar el mail !!!!
$user = $web.EnsureUser("dominio\user")

echo $user

Set-SPUser -Identity $user -Email "user@my_company.com" -Web $web

$user.Update()

Remove-PsSnapin Microsoft.SharePoint.PowerShell